<template>

    <p>登录页</p>
    <p>默认账号密码:  admin   123456</p>

    账号：<el-input v-model="account"></el-input>
    密码: <el-input v-model="password" type="password"></el-input>
    <button @click="login">登录</button>
</template>


<script setup>
import { ref } from 'vue'

const account = ref('')
const password = ref('')

const login = () => {
    if (account.value === 'admin' && password.value === '123456') {
        alert('登录成功')
    } else {
        alert('账号密码错误，请重新输入')
    }
}


</script>